import request from '@/utils/request'



// 获取用户详细信息
export function getInfo() {
    return request({
      url: '/user/getUserInfo',
      method: 'get'
    })
}

// 退出方法
export function logOut() {
  return request({
    url: '/user/logOut',
    method: 'get'
  })
}

/**
 * 登录
 * @param {*} userNo 
 * @param {*} pwd 
 * @returns 
 */
export function doLogin(userNo,pwd) {
  return request({
    url: '/user/doLogin?userNo='+userNo+'&pwd='+pwd,
    method: 'get'
  })
}



/**
 * 创建应用
 * @returns 
 */
export function saveApp(message) {
  return request({
    url: '/app/saveApp?message='+message,
    method: 'get'
  })
}


/**
 * 选为精选案例
 * @param {*} appId 
 * @returns 
 */
export function updateShow(appId) {
  return request({
    url: '/app/updateShow?appId='+appId,
    method: 'get'
  })
}


export function getCursorPage(cursor,size) {
  return request({
    url: '/app/cursorPage?cursor='+cursor+'&size='+size,
    method: 'get'
  })
}

export function getAppInfo(appId) {
  return request({
    url: '/app/info?appId='+appId,
    method: 'get'
  })
}



